//
//  SerialSearchResultsViewController.h
//  XPhoto
//
//  Created by baboy on 2019/5/7.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PostSerial.h"

NS_ASSUME_NONNULL_BEGIN
@protocol SerialSearchDelegate;

@interface SerialSearchResultsViewController : UIViewController
@property(nonatomic, strong) IBOutlet UITableView *tableView;
@property(nonatomic, assign) id<SerialSearchDelegate> delegate;
@property(nonatomic, strong) NSString *keyword;
- (void)reload;
- (void)search:(NSString *)keyword;
@end

@protocol SerialSearchDelegate <NSObject>

- (void)serialSearchViewController:(id)vc didSelectSerial:(PostSerial*)serial;
- (void)serialSearchViewController:(id)vc didSelectSerials:(NSArray<PostSerial *> *)serial;
@end

NS_ASSUME_NONNULL_END
